//
// Decompiled by Jadx - 360ms
//
package me.plusne.GreenDao.dao;

import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import androidx.activity.b;
import fm.k;
import org.greenrobot.greendao.database.DatabaseStatement;
import x.a;
import x.d;

public final class SoulChatListHideDao extends a<k, Long> {
    public static final String TABLENAME = "SOUL_CHAT_LIST_HIDE";

    public class Properties {
        public static final d Id = new d(0, Long.class, "id", true, "_id");
        public static final d UserId = new d(1, String.class, "userId", false, "USER_ID");
    }
    public SoulChatListHideDao(g.a aVar) {
        super(aVar);
    }

    public static void createTable(org.greenrobot.greendao.database.Database aVar, boolean z) {
        String str;
        if (z) {
            str = "IF NOT EXISTS ";
        } else {
            str = "";
        }
        aVar.d("CREATE TABLE " + str + "\"SOUL_CHAT_LIST_HIDE\" (\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ,\"USER_ID\" TEXT);");
        b.v(new StringBuilder("CREATE INDEX "), str, "userIdHide ON \"SOUL_CHAT_LIST_HIDE\" (\"USER_ID\" ASC);", aVar);
    }

    public static void dropTable(org.greenrobot.greendao.database.Database aVar, boolean z) {
        String str;
        StringBuilder sb = new StringBuilder("DROP TABLE ");
        if (z) {
            str = "IF EXISTS ";
        } else {
            str = "";
        }
        b.v(sb, str, "\"SOUL_CHAT_LIST_HIDE\"", aVar);
    }

    public final void a(SQLiteStatement sQLiteStatement, Object obj) {
        k kVar = (k) obj;
        sQLiteStatement.clearBindings();
        Long l = kVar.a;
        if (l != null) {
            sQLiteStatement.bindLong(1, l.longValue());
        }
        String str = kVar.b;
        if (str != null) {
            sQLiteStatement.bindString(2, str);
        }
    }

    public final void b(Object obj, DatabaseStatement cVar) {
        k kVar = (k) obj;
        cVar.k();
        Long l = kVar.a;
        if (l != null) {
            cVar.j(1, l.longValue());
        }
        String str = kVar.b;
        if (str != null) {
            cVar.i(2, str);
        }
    }

    public final Long c(Object obj) {
        k kVar = (k) obj;
        if (kVar != null) {
            return kVar.a;
        }
        return null;
    }

    public final Object d(Cursor cursor) {
        return new k(cursor.isNull(0) ? null : Long.valueOf(cursor.getLong(0)), cursor.isNull(1) ? null : cursor.getString(1));
    }

    public final Long e(Cursor cursor) {
        if (cursor.isNull(0)) {
            return null;
        }
        return Long.valueOf(cursor.getLong(0));
    }

    public final Long f(long j, Object obj) {
        ((k) obj).a = Long.valueOf(j);
        return Long.valueOf(j);
    }
}
